package com.cjl.mapper;

import com.cjl.entity.EbComment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/** @Description: 用一句话描述
 *  @Auther
 *  @Date:
 */
public interface CommentMapper {

 public  List<EbComment> findByPage(@Param("from") Integer from, @Param("pageSize") Integer pageSize);
 /**
  * 添加用户留言
  * @param ebComment 参数对象
  * @return
  */
 int save(EbComment ebComment);
 public int delete(Integer ecId);
 public int updateByPrimaryKey(EbComment ebComment);
 Integer getTotalPage(Integer pageSize);
 /**
  * 根据的编号查询的信息
  * @param ecId 新闻编号
  * @return
  */
 EbComment  selectOne(Integer ecId);
 public int deleteByPk(Integer ecId);
}


